<template>
  <div class="app-home">
    <ManageHeader></ManageHeader>
    <div class="app-body">
      <div class="body-left">
        <ManageLeft />
      </div>
      <div class="body-right">
        <transition name="el-fade-in" mode="out-in">
          <keep-alive>
            <router-view v-if="$route.meta.keepAlive"></router-view>
          </keep-alive>
        </transition>
        <transition name="el-fade-in" mode="out-in">
          <router-view v-if="!$route.meta.keepAlive"></router-view>
        </transition>
      </div>
    </div>
  </div>
</template>

<script>
import ManageLeft from "../components/manageLeft";
import ManageHeader from "../components/manageHeader.vue";
export default {
  components: {
    ManageHeader,
    ManageLeft,
  },
};
</script>

<style lang="less" scoped>
.app-home {
  width: 100%;
  height: 100%;
}
.app-body {
  width: 100%;
  height: calc(100% - 100px);
  display: flex;
  background: #f3f3f3;
  overflow: hidden;
}
.body-left {
  flex: 0 0 300px;
  background: #fff;
  min-width: 170px;
  margin-right: 30px;
  height: 100%;
  .dxhj {
    padding-top: 13px;
    width: 100%;
    height: 38px;

    img {
      float: left;
      width: 38px;
      height: 38px;
      margin-left: 13px;
    }

    span {
      float: left;
      line-height: 31px;
      height: 18px;
      font-size: 18px;
      font-family: Source Han Sans CN;
      font-weight: bold;
      color: #222222;
    }
  }

  /deep/ .el-collapse-item__header {
    height: 40px;
    padding-left: 40px;
    font-size: 14px;
  }

  /deep/ .el-collapse-item__header.is-active {
    color: #fe6a00;
  }
}
.body-right {
  flex: 1;
  height: 100%;
  overflow-y: auto;
}
/*
  *常用电脑尺寸  1600 * 900
  *              1536 * 864
  *              1440 * 900
  *ipad pro      1366 * 1024
  *ipad mini     1024 * 768
  *ipad          1024 * 768
 */
/*分辨率低于1440，采用下面的样式*/
@media screen and (max-device-width: 1600px) {
}
/*分辨率低于1440，采用下面的样式*/
@media screen and (max-device-width: 1536px) {
}
/*分辨率低于1440，采用下面的样式*/
@media screen and (max-device-width: 1440px) {
}
/*分辨率低于1440，采用下面的样式*/
@media screen and (max-device-width: 1366px) {
}
/*分辨率低于1180，采用下面的样式*/
@media screen and (max-device-width: 1180px) {
}
/*分辨率低于1024，采用下面的样式*/
@media screen and (max-device-width: 1024px) {
}
</style>
